function get_update_list(s)
{
var xmlhttp;
if (window.XMLHttpRequest)
  {// code for IE7+, Firefox, Chrome, Opera, Safari
  xmlhttp=new XMLHttpRequest();
  }
else
  {// code for IE6, IE5
  xmlhttp=new ActiveXObject("Microsoft.XMLHTTP");
  }
xmlhttp.onreadystatechange=function()
  {
  if (xmlhttp.readyState==4 && xmlhttp.status==200)
    {
        document.getElementById(s).innerHTML=xmlhttp.responseText;
        //document.getElementById(s).value=xmlhttp.responseText;
    }
  }
xmlhttp.open("GET","/ajax/update_list.asp?data=list&id=null",true);
xmlhttp.send();
}

function wirte_result(s,r)
{
var xmlhttp;
if (window.XMLHttpRequest)
  {// code for IE7+, Firefox, Chrome, Opera, Safari
  xmlhttp=new XMLHttpRequest();
  }
else
  {// code for IE6, IE5
  xmlhttp=new ActiveXObject("Microsoft.XMLHTTP");
  }
xmlhttp.onreadystatechange=function()
  {
  if (xmlhttp.readyState==4 && xmlhttp.status==200)
    {
        document.getElementById(s).innerHTML=xmlhttp.responseText;
        //document.getElementById(s).value=xmlhttp.responseText;
    }
  }
xmlhttp.open("GET","/ajax/test_result.asp?result="+r+"&row="+s,true);
xmlhttp.send();
}

/* function wirte_result(r,s)
{
var xmlhttp;
if (window.XMLHttpRequest)
  {// code for IE7+, Firefox, Chrome, Opera, Safari
  xmlhttp=new XMLHttpRequest();
  }
else
  {// code for IE6, IE5
  xmlhttp=new ActiveXObject("Microsoft.XMLHTTP");
  }
xmlhttp.onreadystatechange=function()
  {
  if (xmlhttp.readyState==4 && xmlhttp.status==200)
    {
        document.getElementById(s).innerHTML=xmlhttp.responseText;
        //document.getElementById(s).value=xmlhttp.responseText;
    }
  }
xmlhttp.open("GET","/ajax/test_result.asp?result="+r+"&row="+s,true);
xmlhttp.send();
} */

function getMac(){
      var locator = new ActiveXObject ("WbemScripting.SWbemLocator");
      var service = locator.ConnectServer(".");
      var properties = service.ExecQuery("Select * from Win32_NetworkAdapterConfiguration Where IPEnabled =True");
      var e = new Enumerator (properties);
      {
            var p = e.item();
            var mac = p.MACAddress;
            return mac
      }
}


function remark_update(ele,r)
{
var xmlhttp;
if (window.XMLHttpRequest)
  {// code for IE7+, Firefox, Chrome, Opera, Safari
  xmlhttp=new XMLHttpRequest();
  }
else
  {// code for IE6, IE5
  xmlhttp=new ActiveXObject("Microsoft.XMLHTTP");
  }
xmlhttp.onreadystatechange=function()
  {
  if (xmlhttp.readyState==4 && xmlhttp.status==200)
    {
        //document.getElementById(id).innerHTML=xmlhttp.responseText;
        //document.getElementById(id).value=xmlhttp.responseText;
        document.getElementById(ele.id).value=xmlhttp.responseText;
    }
  }
xmlhttp.open("GET","/ajax/remakr_update.asp?row="+r+"&remark="+ele.value,true);
xmlhttp.send();
}